package cn.xsly.ymcc.fegin;


import cn.xsly.ymcc.result.JSONResult;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class MediaFeginFactory implements FallbackFactory<MediaFeginClient> {
    @Override
    public MediaFeginClient create(Throwable cause) {
        return new MediaFeginClient() {
            @Override
            public JSONResult selectByCourseId(Long id) {
                return null;
            }
        };
    }
}